// const TOKEN = "my_token"
// //设置token     localStorage.setItem("my_token",val)
// let  setToken = (val) => {
//     localStorage.setItem(TOKEN,val)
// }

// //获取token  localStorage.getItem("my_token")
// let  getToken = () => {
//     return localStorage.getItem(TOKEN)
// }

// //删除token  !!localStorage.removeItem("my_token")
// let  removeToken = (val) => {
//     localStorage.removeItem(TOKEN)
// }


// //判断是否登录    !!localStorage.getItem("my_token")
// // !!localStorage.getItem("my_token")
// let isAuth = () =>{
//     return !! getToken()//!!强制转换,若localStorage存储了"my_token"，则表示登录了
// }
// export {setToken,getToken,removeToken,isAuth}
